Skip to content

Ship PUT end to end - #96

Open
ru13r wants to merge 5 commits into
mate-academy:mainfrom
ru13r:main
Open

Ship PUT end to end#96
ru13r wants to merge 5 commits into
mate-academy:mainfrom
ru13r:main

Conversation

@ru13r

@ru13r ru13r commented Aug 20, 2026

Copy link
Copy Markdown

No description provided.

ru13r and others added 5 commits August 20, 2026 11:07
Adds updateUser(id, { name, email }) to db/store.js, mirroring the
existing getUserById/createUser conventions, to support the upcoming
PUT /users/:id endpoint.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds a route to update an existing user, validating required fields
(400) and returning 404 when the user doesn't exist, following the
same conventions as the existing GET/POST routes. All tests in
tests/update-user.test.js now pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Write-up covering the plan, model choice (Claude Sonnet 5), commit
split, and review for the PUT /users/:id feature.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Check user existence before body validation so an unknown id always
returns 404 regardless of body shape, and require name/email to be
non-blank strings so non-string values and whitespace-only input are
rejected instead of silently persisted. Findings from a pre-push code
review.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Restructure NOTES.md to directly answer the plan/model/commits/review
questions, including the mid-planning revision (adding a per-commit
workflow) and the pre-push review findings and fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant